package com.example.lib_mvi.base

import com.nezha.lib_mvi.IView


abstract class BaseMVIActivity:BaseActivity(), IView {
    /**
     * 创建viewmodel
     */
    abstract fun generateViewModel()

    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }

    /**
     * 页面活跃的时候采取处理状态更新UI
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }

}